<template>
	<div id="location" class="page">
		<h1>定位</h1>
		<h2>传进来的经度{{lon}}</h2>
		<h2>传进来的纬度{{lat}}</h2>
	</div>
</template>

<script>
	export default {
		data(){
			return {
				lon:"",
				lat:""
			}
		},
		created(){
			//取得路由传(父页面)传进来的值
			console.log(this.$route.query)
			this.lon = this.$route.query.lon;
			this.lat = this.$route.query.lat;
		}
	}
</script>

<style>
</style>